package com.yao.annotation;
 
/**
 * Created by Kangjun on 2015/11/22.
 */
public class Fruit {
    @FruitName(name = "apple")
    private String name;
 
    @FruitColor(color=FruitColor.Color.Red)
    private String color;
 
    @FruitProvider(id = 1,price = 1,name = "apple",address = "广州")
    private String provider;
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getColor() {
        return color;
    }
 
    public void setColor(String color) {
        this.color = color;
    }
 
    public String getProvider() {
        return provider;
    }
 
    public void setProvider(String provider) {
        this.provider = provider;
    }
 
    @Override
    public String toString() {
        return "Fruit{" +
                "name='" + name + '\'' +
                ", color='" + color + '\'' +
                ", provider='" + provider + '\'' +
                '}';
    }
}